<template>
  <div>
    <el-button @click="showA()" type="primary">按钮1</el-button>
    <span>{{ this.A }}</span><br>
    <el-button @click="showB()" type="primary">按钮2</el-button>
    <span>{{ this.B }}</span>

  </div>
</template>
<script>
import axios from "axios";

export default {
  data() {
    return {
      A: '',
      B: ''


    }
  }, methods: {
    showA() {
      axios.get("/project/apm/info").then(r => {
        let info = r.data;
        console.log(info);
        this.A = info;
        this.B = "";
      })


    },
    showB() {
      axios.get("/project/api/B/info").then(r => {
        let info = r.data;
        console.log(info);
        this.B = info;
        this.A=""
      })


    }

  }
}
</script>

<style scoped>

</style>